//封装请求，应为需要加载菊花

export default (params) => {
    return new Promise((resolve,reject) =>{
        uni.showLoading({
            title: '加载中'
        });
        wx.request({
            ...params,
            success(res){
                console.log(res);
            },
            fail(err){
                console.log(err);
            },
            complet(){
                uni.hideLoading();
            }
        })
    })
}